package com.example.teesystem.entity.vo.examPaper;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author : NieYaShi
 * @version : v1.0
 * @createTime : 2022/4/12 15:05
 * 用于试卷更新
 */
@Data
public class ExamPaperUpdateVo1 {
    @NotNull(message = "id不能为空")
    private Integer id;
    @NotNull(message = "名称不能为空")
    private String name;
    @NotNull(message = "开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date startTime;
    @NotNull(message = "结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date endTime;
    @NotNull(message = "班级不能为空")
    private Integer [] classes;
}
